﻿package Message.Game
{
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SGuildTaskShare extends Object
    {
        public var id:int;
        public var entityId:SEntityId;
        public var playerName:String;
        public var position:int;
        public var taskCode:int;
        public var getCount:int;
        public var isGet:Boolean;
        public var time:Date;

        public function SGuildTaskShare()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.id);
            this.entityId.__write(param1);
            param1.writeString(this.playerName);
            param1.writeInt(this.position);
            param1.writeInt(this.taskCode);
            param1.writeInt(this.getCount);
            param1.writeBool(this.isGet);
            param1.writeDate(this.time);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.id = param1.readInt();
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.playerName = param1.readString();
            this.position = param1.readInt();
            this.taskCode = param1.readInt();
            this.getCount = param1.readInt();
            this.isGet = param1.readBool();
            this.time = param1.readDate();
            return;
        }// end function

    }
}
